// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   CancelMouseListener.java

package org.gemstone.mouseListener;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import org.come.Frame.ZhuFrame;
import org.come.Jpanel.ZhuJpanel;
import org.come.entity.Goodstable;
import org.come.until.MessagrFlagUntil;
import org.gemstone.panel.*;

public class CancelMouseListener
	implements MouseListener
{

	private int path;

	public CancelMouseListener(int path)
	{
		this.path = path;
	}

	@Override
    public void mouseClicked(MouseEvent e)
	{
		GemstoneOperationMainPanel gemstoneOperationMainPanel = GemstoneOperationMainFrame.getGemstoneOperationMainFrame().getGemstoneOperationMainPanel();
		gemstoneOperationMainPanel.getGoodsLabes()[path] = null;
		switch (gemstoneOperationMainPanel.getTypePanel())
		{
		case 1: // '\001'
			gemstoneOperationMainPanel.changeIcon(null, path, gemstoneOperationMainPanel.getGemstoneOperationMainCardPanel().getGemstoneOperationSynthesisPanel().getGemstoneNumber());
			break;

		case 2: // '\002'
			gemstoneOperationMainPanel.changeIcon(null, path, gemstoneOperationMainPanel.getGemstoneOperationMainCardPanel().getGemstoneOperationAppraisalAndRecastPanel().getGemstoneNumber());
			break;

		case 3: // '\003'
			GemstoneOperationMainFrame.getGemstoneOperationMainFrame().getGemstoneOperationMainPanel().changeIcon(null, path, gemstoneOperationMainPanel.getGemstoneOperationMainCardPanel().getGemstoneOperationAppraisalAndRecastPanel().getGemstoneNumber());
			break;
		}
		GemstoneOperationMainFrame.getGemstoneOperationMainFrame().getGemstoneOperationMainPanel().repaintBtn();
	}

	@Override
    public void mousePressed(MouseEvent mouseevent)
	{
	}

	@Override
    public void mouseReleased(MouseEvent mouseevent)
	{
	}

	@Override
    public void mouseEntered(MouseEvent e)
	{
		MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
		Goodstable goodstable = GemstoneOperationMainFrame.getGemstoneOperationMainFrame().getGemstoneOperationMainPanel().getGoodsLabes()[path];
		if (goodstable != null) {
            ZhuFrame.getZhuJpanel().creatgoodtext(goodstable);
        }
	}

	@Override
    public void mouseExited(MouseEvent e)
	{
		MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
		ZhuFrame.getZhuJpanel().cleargoodtext();
	}
}
